package com.mcxx.modules.base.dao.read;

import com.mcxx.modules.base.entity.AreaEntity;
import com.yinhai.ta404.component.org.orguser.area.entity.TaAreaPo;
import com.yinhai.ta404.module.mybatis.mapper.Ta404SupportMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface TAAreaReadDao extends Ta404SupportMapper {
    List<TaAreaPo> getChildrenByLevel(String areaCode, List<Integer> levels);
    int getCountByAreaCode(String userAreaCode,String areaCode);

    List<AreaEntity>  getInfoByName(String financeName);

    List<AreaEntity>  getInfoByNameAndPid(@Param("financeName")String financeName, @Param("pId")String pId, @Param("level")String level);

    List<AreaEntity>  getInfoByPid(String pId);
}
